#include "sym.h"
const std::map<std::string, SYMS> optMap = {
    {"=", SYMS::EQUAL},
    {",", SYMS::COMMA},
    {";", SYMS::SEMICOLON},
    {".", SYMS::DOT},
    {"(", SYMS::LEFT_BRACKET},
    {")", SYMS::RIGHT_BRACKET},
    {":", SYMS::COLON},
    {"<", SYMS::LESS},
    {">", SYMS::GREATER},
    {"+", SYMS::PLUS},
    {"-", SYMS::MINUS},
    {"<=", SYMS::LESS_EQUAL},
    {">=", SYMS::RIGHT_EQUAL},
    {"#", SYMS::NOT_EQUAL},
    {":=", SYMS::VAR_ASSIGN},
    {"*",SYMS::MULTIPLY},
    {"/",SYMS::DIVIDE}};

bool checkOpt(std::string s)
{
    auto it = optMap.find(s);
    if (it != optMap.end())
    {
        SYM = it->second;
        return true;
    }
    else
    {
        return false;
    }
}
